package com.xnck.demo.activitidemo.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

public class MyEndListener implements ExecutionListener {

    @Override
    public void notify(DelegateExecution delegateExecution) {
        System.out.println("流程结束");
//        System.out.println("getId:" + delegateExecution.getId());
//        System.out.println("getProcessInstanceId:" + delegateExecution.getProcessInstanceId());
//        System.out.println("getRootProcessInstanceId" + delegateExecution.getRootProcessInstanceId());
//        System.out.println("getEventName:" + delegateExecution.getEventName());
//        System.out.println("getProcessInstanceBusinessKey:" + delegateExecution.getProcessInstanceBusinessKey());
//        System.out.println("getProcessDefinitionId:" + delegateExecution.getProcessDefinitionId());
//        System.out.println("getParentId:" + delegateExecution.getParentId());
//        System.out.println("getSuperExecutionId:" + delegateExecution.getSuperExecutionId());
//        System.out.println("getCurrentActivityId:" + delegateExecution.getCurrentActivityId());
//        System.out.println("getTenantId:" + delegateExecution.getTenantId());
//        System.out.println("getCurrentFlowElement:" + (null != delegateExecution.getCurrentFlowElement() ? delegateExecution.getCurrentFlowElement().getName() : null));
//        System.out.println("=======");
    }
}
